Index A | B | C | D | E | F | G | H | I | L | M | N | O | P | Q | R | S | T | U | V A AutoLMModel (class in lmcsc.model) B bag_of_chars_hash() (lmcsc.transformation_type.TransformationType method) BaichuanModel (class in lmcsc.model) BaseObversationGenerator (class in lmcsc.obversation_generator) batch_predicts (lmcsc.obversation_generator.NextObversationGenerator attribute) batch_steps (lmcsc.obversation_generator.NextObversationGenerator attribute) batch_verbose_steps (lmcsc.obversation_generator.NextObversationGenerator attribute) BeamStreamer (class in lmcsc.streamer) build_distortion_type_priority() (lmcsc.transformation_type.TransformationType method) build_inverse_index() (lmcsc.transformation_type.TransformationType method) C ChatBaichuanModel (class in lmcsc.model) ChatInternLM2Model (class in lmcsc.model) ChatLlamaModel (class in lmcsc.model) ChatLMModel (class in lmcsc.model) ChatQwenModel (class in lmcsc.model) ChatUerModel (class in lmcsc.model) D decode_kwargs (lmcsc.streamer.BeamStreamer attribute) decorate_model_instance() (lmcsc.corrector.LMCorrector method) (lmcsc.model.LMModel method) distortion_guided_beam_search() (in module lmcsc.generation) distortion_type_priority (lmcsc.transformation_type.TransformationType attribute) distortion_type_priority_order (lmcsc.transformation_type.TransformationType attribute) E end() (lmcsc.streamer.BeamStreamer method) F filter_and_finalize_transformations() (lmcsc.transformation_type.TransformationType method) from_pretrained() (lmcsc.model.AutoLMModel static method) G get_distortion_probs() (in module lmcsc.generation) get_model_kwargs() (lmcsc.model.BaichuanModel method) (lmcsc.model.InternLM2Model method) (lmcsc.model.LlamaModel method) (lmcsc.model.LMModel method) (lmcsc.model.QwenModel method) (lmcsc.model.UerModel method) get_n_parameters() (lmcsc.model.LMModel method) get_observed_sequences() (lmcsc.obversation_generator.BaseObversationGenerator method) (lmcsc.obversation_generator.NextObversationGenerator method) get_pinyin_data() (lmcsc.transformation_type.TransformationType method) get_transformation_type() (lmcsc.transformation_type.TransformationType method) H handle_continuous_punctuation_or_space() (lmcsc.transformation_type.TransformationType method) handle_final_oov() (lmcsc.transformation_type.TransformationType method) handle_identical_characters() (lmcsc.transformation_type.TransformationType method) handle_initial_pinyin_match() (lmcsc.transformation_type.TransformationType method) handle_missing_characters() (lmcsc.transformation_type.TransformationType method) handle_oov_characters() (lmcsc.transformation_type.TransformationType method) handle_other_pinyin_error() (lmcsc.transformation_type.TransformationType method) handle_other_similar_shape() (lmcsc.transformation_type.TransformationType method) handle_prone_to_confusion() (lmcsc.transformation_type.TransformationType method) handle_redundant_before_punctuation_or_space() (lmcsc.transformation_type.TransformationType method) handle_redundant_character_inside_token() (lmcsc.transformation_type.TransformationType method) handle_redundant_characters() (lmcsc.transformation_type.TransformationType method) handle_reorder_tokens() (lmcsc.transformation_type.TransformationType method) handle_same_pinyin() (lmcsc.transformation_type.TransformationType method) handle_similar_pinyin() (lmcsc.transformation_type.TransformationType method) handle_similar_shape() (lmcsc.transformation_type.TransformationType method) I init_pinyin_of_token_hash() (lmcsc.transformation_type.TransformationType method) InternLM2Model (class in lmcsc.model) is_byte_level_tokenize (lmcsc.model.LMModel attribute) is_bytes_level (lmcsc.obversation_generator.NextObversationGenerator attribute) (lmcsc.transformation_type.TransformationType attribute) is_finished (lmcsc.obversation_generator.NextObversationGenerator attribute) is_punctuation_or_space() (lmcsc.transformation_type.TransformationType method) L last_text (lmcsc.streamer.BeamStreamer attribute) LlamaModel (class in lmcsc.model) LMCorrector (class in lmcsc.corrector) lmcsc.corrector module lmcsc.generation module lmcsc.model module lmcsc.obversation_generator module lmcsc.streamer module lmcsc.transformation_type module LMModel (class in lmcsc.model) load_dict() (lmcsc.transformation_type.TransformationType method) load_list() (lmcsc.transformation_type.TransformationType method) load_similar_spell_dict() (lmcsc.transformation_type.TransformationType method) M model (lmcsc.model.LMModel attribute) model_name (lmcsc.model.LMModel attribute) module lmcsc.corrector lmcsc.generation lmcsc.model lmcsc.obversation_generator lmcsc.streamer lmcsc.transformation_type N n_beam (lmcsc.obversation_generator.NextObversationGenerator attribute) n_observed_chars (lmcsc.obversation_generator.NextObversationGenerator attribute) near_spell_dict (lmcsc.transformation_type.TransformationType attribute) NextObversationGenerator (class in lmcsc.obversation_generator) O on_finalized_text() (lmcsc.streamer.BeamStreamer method) P postprocess() (lmcsc.corrector.LMCorrector method) prepare_beam_search_inputs() (lmcsc.model.LlamaModel method) (lmcsc.model.LMModel method) prepare_prompted_inputs() (lmcsc.model.ChatLMModel method) (lmcsc.model.LMModel method) preprocess() (lmcsc.corrector.LMCorrector method) print_len (lmcsc.streamer.BeamStreamer attribute) print_params() (lmcsc.corrector.LMCorrector method) process_generated_outputs() (lmcsc.model.LMModel method) (lmcsc.model.UerModel method) process_reward_beam_search() (in module lmcsc.generation) prone_to_confusion_dict (lmcsc.transformation_type.TransformationType attribute) put() (lmcsc.streamer.BeamStreamer method) Q QwenModel (class in lmcsc.model) R reorder() (lmcsc.obversation_generator.BaseObversationGenerator method) (lmcsc.obversation_generator.NextObversationGenerator method) S set_convert_ids_to_tokens() (lmcsc.model.BaichuanModel method) (lmcsc.model.InternLM2Model method) (lmcsc.model.LlamaModel method) (lmcsc.model.LMModel method) (lmcsc.model.QwenModel method) (lmcsc.model.UerModel method) set_decoder_start_token_id() (lmcsc.model.BaichuanModel method) (lmcsc.model.InternLM2Model method) (lmcsc.model.LlamaModel method) (lmcsc.model.LMModel method) (lmcsc.model.QwenModel method) (lmcsc.model.UerModel method) set_vocab_size() (lmcsc.model.BaichuanModel method) (lmcsc.model.InternLM2Model method) (lmcsc.model.LlamaModel method) (lmcsc.model.LMModel method) (lmcsc.model.QwenModel method) (lmcsc.model.UerModel method) shape_confusion_dict (lmcsc.transformation_type.TransformationType attribute) show_steps() (lmcsc.obversation_generator.BaseObversationGenerator method) (lmcsc.obversation_generator.NextObversationGenerator method) similar_consonant_dict (lmcsc.transformation_type.TransformationType attribute) similar_shape_dict (lmcsc.transformation_type.TransformationType attribute) similar_spell_dict (lmcsc.transformation_type.TransformationType attribute) similar_vowel_dict (lmcsc.transformation_type.TransformationType attribute) src (lmcsc.obversation_generator.NextObversationGenerator attribute) step() (lmcsc.obversation_generator.BaseObversationGenerator method) (lmcsc.obversation_generator.NextObversationGenerator method) stop_signal (lmcsc.streamer.BeamStreamer attribute) T text_queue (lmcsc.streamer.BeamStreamer attribute) timeout (lmcsc.streamer.BeamStreamer attribute) token_transformation_to_probs() (in module lmcsc.generation) tokenizer (lmcsc.model.LMModel attribute) (lmcsc.streamer.BeamStreamer attribute) TransformationType (class in lmcsc.transformation_type) U UerModel (class in lmcsc.model) update_params() (lmcsc.corrector.LMCorrector method) V verbose (lmcsc.obversation_generator.NextObversationGenerator attribute) vocab (lmcsc.model.LMModel attribute) (lmcsc.transformation_type.TransformationType attribute)